package myhashmap;



public class Entry {

	int hash;
	final int key;
	int value;
    Entry next;

	public Entry(int hash, int key, int value, Entry next) {
		this.hash = hash;
		this.key = key;
		this.value = value;
		this.next = next;
	}

	public final int getKey() {
        return key;
    }

    public final int getValue() {
        return value;
    }

    public final int setValue(int newValue) {
        int oldValue = value;
        value = newValue;
        return oldValue;
    }
}
